home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 1 / Cream of the Crop 1.iso / COMPRESS / ARC_CHK.ARJ / PKCHK.BAT < prev    next >
DOS Batch File  |  1992-01-06  |  525b  |  25 lines

  1. @echo off
  2.  
  3. : ZIP2EXE leaves a PKWARE copyright notice in its self-extracting files.
  4. : Offset 50 contains the text string "PKWARE" for these files.
  5.  
  6. ARC_CHK %1 50 PKWARE
  7.  
  8.  
  9. if errorlevel 0 if not errorlevel 1 goto GOOD
  10. if errorlevel 1 if not errorlevel 2 goto BAD
  11. if errorlevel 255 if not errorlevel 256 goto EXE_ERROR
  12.  
  13. :BAD
  14. ECHO %1 IS A PKWARE SELF EXTRACTING FILE!!!
  15. goto end
  16.  
  17. :GOOD
  18. ECHO %1 is not a PKWARE self extracting file
  19. goto end
  20.  
  21. :EXE_ERROR
  22. echo Program execution error encountered!
  23.  
  24. :END
  25.